Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
R-mime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
packaging
R-mime
Commits
73f74b50
Commit
73f74b50
authored
7 years ago
by
Klaus Zimmermann
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit
parents
Branches
master
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+6
-0
6 additions, 0 deletions
Makefile
R-mime.spec
+62
-0
62 additions, 0 deletions
R-mime.spec
with
68 additions
and
0 deletions
Makefile
0 → 100644
+
6
−
0
View file @
73f74b50
dir
=
$(
shell
pwd
)
pkg
=
$(
notdir
$(
dir
))
spec_file
=
$(
pkg
)
.spec
sources
:
$(spec_file)
spectool
-g
$^
This diff is collapsed.
Click to expand it.
R-mime.spec
0 → 100644
+
62
−
0
View file @
73f74b50
%global packname mime
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.5
Release: 1%{?dist}
Summary: Map Filenames to MIME Types
Group: Applications/Engineering
License: GPL+
URL: http://cran.r-project.org/web/packages/%{packname}/index.html
Source0: http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Here's the R view of the dependencies world:
# Depends:
# Imports: R-tools
# Suggests:
# LinkingTo:
# Enhances:
BuildRequires: R-devel tex(latex)
%description
Guesses the MIME type from a filename extension using the data derived
from /etc/mime.types in UNIX-type systems.
%prep
%setup -q -c -n %{packname}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
%check
%{_bindir}/R CMD check %{packname}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs/mime.so
%changelog
* Tue May 16 2017 Klaus Zimmermann <klaus.zimmermann@smhi.se> 0.5-1
- initial package for Fedora
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment