commit b812334cdd3cff7eacaace0875edf474a66e8106
Author: Jan Palus <[email protected]>
Date:   Fri Nov 8 15:14:15 2013 +0100

    - new

 libcuefile.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)
---
diff --git a/libcuefile.spec b/libcuefile.spec
new file mode 100644
index 0000000..7055555
--- /dev/null
+++ b/libcuefile.spec
@@ -0,0 +1,72 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
+%define                rev     475
+Summary:       Library for working with Cue Sheet (cue) and Table of Contents 
(toc) files
+Name:          libcuefile
+Version:       0.0.1.r%{rev}
+Release:       1
+License:       GPL v2+
+Group:         Libraries
+Source0:       http://files.musepack.net/source/%{name}_r%{rev}.tar.gz
+# Source0-md5: 1a6ac52e1080fd54f0f59372345f1e4e
+URL:           http://www.musepack.net/
+BuildRequires: cmake >= 2.4
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Library for working with Cue Sheet (cue) and Table of Contents (toc)
+files.
+
+%package devel
+Summary:       Header files for %{name}
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name}.
+
+%package static
+Summary:       Static version of the %{name} library
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static version of the %{name} library.
+
+%prep
+%setup -q -n libcuefile_r%{rev}
+
+%build
+%cmake
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_includedir}
+%{__cp} -r include/cuetools $RPM_BUILD_ROOT%{_includedir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README
+%attr(755,root,root) %{_libdir}/libcuefile.so.*.*.*
+%ghost %{_libdir}/libcuefile.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcuefile.so
+%{_includedir}/cuetools
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcuefile.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libcuefile.git/commitdiff/b812334cdd3cff7eacaace0875edf474a66e8106

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to