packages: libzen/libzen.spec (NEW) - initial
arekm
arekm at pld-linux.org
Fri Dec 4 18:08:16 CET 2009
Author: arekm Date: Fri Dec 4 17:08:16 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/libzen:
libzen.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/libzen/libzen.spec
diff -u /dev/null packages/libzen/libzen.spec:1.1
--- /dev/null Fri Dec 4 18:08:16 2009
+++ packages/libzen/libzen.spec Fri Dec 4 18:08:11 2009
@@ -0,0 +1,117 @@
+# $Revision$, $Date$
+Summary: Shared library for libmediainfo and medianfo*
+Name: libzen
+Version: 0.4.9
+Release: 4.1
+License: BSD
+Group: Libraries
+URL: http://zenlib.sourceforge.net/
+Source0: http://downloads.sourceforge.net/project/zenlib/ZenLib%20-%20Sources/%{version}/%{name}_%{version}.tar.bz2
+# Source0-md5: 40942f2ecf470bfe1a28ac75c55096c5
+BuildRequires: dos2unix
+BuildRequires: doxygen
+BuildRequires: libstdc++-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Shared library for libmediainfo and medianfo-*.
+
+%package -n libzen-devel
+Summary: Include files and mandatory libraries for development
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description -n libzen-devel
+Include files and mandatory libraries for development.
+
+%package static
+Summary: Static libzen library
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libzen library.
+
+%prep
+%setup -q -n ZenLib
+dos2unix *.txt Source/Doc/*.html
+chmod 644 *.txt Source/Doc/*.html
+
+%build
+export CFLAGS="%{rpmcflags}"
+export CPPFLAGS="%{rpmcppflags}"
+export CXXFLAGS="%{rpmcxxflags}"
+
+cd Source/Doc
+ doxygen Doxyfile
+cd ../..
+
+cp Source/Doc/*.html ./
+
+cd Project/GNU/Library
+ chmod +x autogen
+ ./autogen
+ %configure \
+ --enable-shared \
+
+
+ %{__make} clean
+ %{__make}
+cd ../../..
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C Project/GNU/Library \
+ install-strip \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# Zenlib headers and ZenLib-config
+install -dm 755 $RPM_BUILD_ROOT%{_includedir}/ZenLib
+
+install Source/ZenLib/*.h $RPM_BUILD_ROOT%{_includedir}/ZenLib
+
+for i in Base64 HTTP_Client Format/Html Format/Http; do
+ install -dm 755 $RPM_BUILD_ROOT%{_includedir}/ZenLib/$i
+ install -m 644 Source/ZenLib/$i/*.h $RPM_BUILD_ROOT%{_includedir}/ZenLib/$i
+done
+
+%{__sed} -i -e 's|Version: |Version: %{version}|g' Project/GNU/Library/libzen.pc
+
+install -dm 755 $RPM_BUILD_ROOT%{_libdir}/pkgconfig
+install Project/GNU/Library/libzen.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc History.txt License.txt ReadMe.txt
+%attr(755,root,root) %{_libdir}/libzen.so.*
+
+%files devel
+%defattr(644,root,root,755)
+%doc Documentation.html
+%doc Doc/*
+%dir %{_includedir}/ZenLib
+%{_includedir}/ZenLib/*
+%{_libdir}/libzen.la
+%attr(755,root,root) %{_libdir}/libzen.so
+%{_pkgconfigdir}/*.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libzen.a
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/12/04 17:08:11 arekm
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list