Created
August 17, 2012 10:00
-
-
Save hansode/3377616 to your computer and use it in GitHub Desktop.
snzip.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%define oname snzip | |
Name: %{oname} | |
Version: 0.9.0 | |
Release: 0%{?dist} | |
Summary: a compression/decompression tool based on snappy. | |
Group: Applications/File | |
URL: https://github.com/kubo/snzip | |
Source: %{name}-%{version}.tar.gz | |
License: 2-clause BSD-style license. | |
# * build | |
Requires: snappy | |
BuildRequires: rpm-build | |
BuildRequires: make | |
BuildRequires: gcc | |
BuildRequires: snappy-devel | |
# (base) | |
%description | |
Snzip is one of command line tools using snappy. | |
This supports four type of file formats; snzip format, snappy-framed format snappy-java format and snappy-in-java format. The default format is snzip. | |
Note that the default format is changed to snappy-framed when the program name includes "snappy." | |
If you want to use snzip as a snappy-framed compressor/decompressor, rename snzip to snappy, unsnappy or so. | |
## rpmbuild -bp | |
%prep | |
%setup | |
## rpmbuild -bc | |
%build | |
%configure --prefix=/usr --docdir=/usr/share/doc/%{name}-%{version} | |
make | |
## rpmbuid -bi | |
%install | |
make install DESTDIR=${RPM_BUILD_ROOT} | |
## rpmbuild --clean | |
%clean | |
rm -rf ${RPM_BUILD_ROOT} | |
%files | |
/usr/bin/snzip | |
/usr/share/doc/%{name}-%{version} | |
%dir /usr/share/doc/%{name}-%{version} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment