SPECS: jpeg-mmx.spec - created -libs and -devel - add PIC and gcc4...
glen
glen at pld-linux.org
Fri Jun 9 11:14:29 CEST 2006
Author: glen Date: Fri Jun 9 09:14:29 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- created -libs and -devel
- add PIC and gcc41 patches from gentoo
---- Files affected:
SPECS:
jpeg-mmx.spec (1.18 -> 1.19)
---- Diffs:
================================================================
Index: SPECS/jpeg-mmx.spec
diff -u SPECS/jpeg-mmx.spec:1.18 SPECS/jpeg-mmx.spec:1.19
--- SPECS/jpeg-mmx.spec:1.18 Fri Jun 9 10:46:33 2006
+++ SPECS/jpeg-mmx.spec Fri Jun 9 11:14:20 2006
@@ -1,7 +1,4 @@
# $Revision$, $Date$
-# TODO
-# - -progs subpackage?
-# - shared library?
Summary: libjpeg library with MMX support
Summary(pl): Biblioteka libjpeg z obsługą MMX
Name: jpeg-mmx
@@ -13,14 +10,18 @@
Source0: http://dl.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz
# Source0-md5: 9156c429bd8c4dea65c877c50ed89e15
Patch0: %{name}-DESTDIR.patch
+Patch1: %{name}-PIC.patch
+Patch2: %{name}-gcc41.patch
# XXX: replace it with real x86_64 port or drop
-#Patch1: %{name}-x8664.patch
+#Patch1: %{name}-x8664.patch
URL: http://mjpeg.sourceforge.net/
BuildRequires: gcc >= 5:3.0
BuildRequires: nasm
ExclusiveArch: i586 i686 pentium3 pentium4 athlon
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _includedir /usr/include/jpeg-mmx
+
%description
jpeg-mmx is a modified version of IJG libjpeg library that can use MMX
extension of x86 processors (if available).
@@ -29,38 +30,75 @@
jpeg-mmx to zmodyfikowana wersja biblioteki IJG libjpeg potrafiąca
używać rozszerzenia MMX procesorów x86 (jeśli jest dostępne).
+%package libs
+Summary: Shared jpeg-mmx library
+Group: Libraries
+
+%description libs
+Shared jpeg-mmx library
+
+%package devel
+Summary: Headers for developing programs using libjpeg
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}
+
+%description devel
+The jpeg-mmx-devel package includes the header files and static
+libraries necessary for developing programs which will manipulate JPEG
+files using the libjpeg library.
+
%prep
%setup -q -n %{name}
%patch0 -p1
+%patch1 -p0
+%patch2 -p1
%build
-%configure
+%configure \
+ --enable-shared \
+ --disable-static \
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_includedir},%{_bindir},%{_libdir},%{_mandir}/man1}
-%{__make} install-prog install_real \
+%{__make} install_real install-prog \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%doc README usage.doc wizard.doc change.log libjpeg.doc example.c structure.doc filelist.doc coderules.doc
%attr(755,root,root) %{_bindir}/*
-%{_libdir}/libjpeg-mmx.a
-%{_includedir}/*.h
%{_mandir}/man1/*
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libjpeg-mmx.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}
+%{_libdir}/libjpeg-mmx.la
+%{_libdir}/libjpeg-mmx.so
+
%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.19 2006/06/09 09:14:20 glen
+- created -libs and -devel
+- add PIC and gcc41 patches from gentoo
+
Revision 1.18 2006/06/09 08:46:33 glen
- fix version (it's 0.1.6 really)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/jpeg-mmx.spec?r1=1.18&r2=1.19&f=u
More information about the pld-cvs-commit
mailing list