Created
July 26, 2015 13:03
-
-
Save a-andreyev/f349454b9a8df4cb2595 to your computer and use it in GitHub Desktop.
echoprint-codegen.spec for Jolla Sailfish
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
#!/bin/sh | |
wget --no-check-certificate https://github.com/echonest/echoprint-codegen/archive/$1.tar.gz | |
mv $1.tar.gz echoprint-codegen-$1.tar.gz |
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
%global gitdate 20150109 | |
%global gitrev 938f948 | |
%global gitrevfull 938f948a60fdc529dc3ca7907c8fb328e7b7afbc | |
Name: echoprint-codegen | |
Version: 4.1.1 | |
Release: 1.%{gitdate}git%{gitrev}%{?dist} | |
Summary: Music Fingerprint and Resolving Framework | |
License: MIT | |
URL: https://github.com/echonest/echoprint-codegen | |
Source0: echoprint-codegen-%{gitrevfull}.tar.gz | |
# To fetch sources, do e.g. $ sh echoprint-codegen-snapshot.sh 938f948a60fdc529dc3ca7907c8fb328e7b7afbc | |
Source1: echoprint-codegen-snapshot.sh | |
BuildRequires: zlib-devel | |
BuildRequires: boost-devel | |
BuildRequires: gcc-c++ | |
BuildRequires: make | |
BuildRequires: taglib-devel | |
BuildRequires: meego-rpm-config | |
%description | |
Echoprint is an open source music fingerprint and resolving framework powered by | |
the The Echo Nest. | |
%package devel | |
Summary: Development files for %{name} | |
Requires: %{name}%{?_isa} = %{version}-%{release} | |
%description devel | |
The %{name}-devel package contains libraries and header files for | |
developing applications that use %{name}. | |
%prep | |
%setup -q -n %{name}-%{gitrevfull} | |
%build | |
make %{?_smp_mflags} \ | |
BOOST_INCLUDEDIR=%{_includedir} \ | |
OPTFLAGS="%{optflags}" \ | |
-C src | |
%install | |
make install \ | |
DESTDIR=%{buildroot} \ | |
LIBDIR=%{_libdir} \ | |
INCLUDEDIR=%{_includedir} \ | |
BINDIR=%{_bindir} \ | |
OPTFLAGS="%{optflags}" \ | |
-C src | |
cd %{buildroot}%{_libdir} | |
ln -fs './libcodegen.so.4.1.1' './libcodegen.so.4' | |
ln -fs './libcodegen.so.4' './libcodegen.so' | |
%check | |
rm -rf %{buildroot}%{_libdir}/documentation.list | |
%post -p /sbin/ldconfig | |
%postun -p /sbin/ldconfig | |
%files | |
%doc AUTHORS LICENSE README.md | |
%{_libdir}/libcodegen.so.* | |
%{_bindir}/echoprint-codegen | |
%files devel | |
%{_includedir}/echoprint/ | |
%{_libdir}/libcodegen.so | |
%changelog | |
* Sun Jan 15 2012 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 4.1.1-1.20120115git2e64ff4 | |
- Initial build | |
* Sun Jul 26 2015 Alexey Andreyev <yetanotherandreyev[at]gmail[dot]com> - 4.1.1-1.20150109git938f948 | |
- Build at Jolla Sailfish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment