packages: pacparser/pacparser.spec - up to 1.0.8 - avoid errors by patching...

lisu lisu at pld-linux.org
Thu Dec 3 12:44:13 CET 2009


Author: lisu                         Date: Thu Dec  3 11:44:13 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 1.0.8
- avoid errors by patching Makefile (-include_path.patch)
- do not sed - it changes nothing
- add options for make (CC, CFLAGS, LDFLAGS)
- install libpacparser.so.1 as ghost
- more verbose files

---- Files affected:
packages/pacparser:
   pacparser.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/pacparser/pacparser.spec
diff -u packages/pacparser/pacparser.spec:1.2 packages/pacparser/pacparser.spec:1.3
--- packages/pacparser/pacparser.spec:1.2	Sun Nov  2 00:35:25 2008
+++ packages/pacparser/pacparser.spec	Thu Dec  3 12:44:07 2009
@@ -2,12 +2,13 @@
 Summary:	A library to make your web software pac (proxy auto-config) files intelligent
 Summary(pl.UTF-8):	-
 Name:		pacparser
-Version:	1.0.6
+Version:	1.0.8
 Release:	0.1
 License:	GPL v3
 Group:		Libraries
 Source0:	http://pacparser.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5:	692b2c59070a67ea7ccd4b3f9e4d7e29
+# Source0-md5:	3aec8fd4473a24698f7f4aefb0a79069
+Patch0:		%{name}-include_path.patch
 URL:		http://code.google.com/p/pacparser/
 BuildRequires:	js-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -49,11 +50,13 @@
 
 %prep
 %setup -q
-
-%{__sed} -i -e "s#/usr/lib#%{_libdir}#" Makefile
+%patch0 -p1
 
 %build
-%{__make}
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} -I/usr/include/js -DXP_UNIX" \
+	LDFLAGS="%{rpmldflags} -ljs"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -73,13 +76,13 @@
 %defattr(644,root,root,755)
 %doc README
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*
-%{_mandir}/man1/*
+%attr(755,root,root) %ghost %{_libdir}/libpacparser.so.1
+%{_mandir}/man1/pactester.1*
 
 %files devel
 %defattr(644,root,root,755)
-%{_mandir}/man3/*
-%{_libdir}/lib*.so
+%{_mandir}/man3/pacparser*.3*
+%{_libdir}/libpacparser.so
 %{_includedir}/pacparser.h
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -88,6 +91,14 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2009/12/03 11:44:07  lisu
+- up to 1.0.8
+- avoid errors by patching Makefile (-include_path.patch)
+- do not sed - it changes nothing
+- add options for make (CC, CFLAGS, LDFLAGS)
+- install libpacparser.so.1 as ghost
+- more verbose files
+
 Revision 1.2  2008/11/01 23:35:25  areq
 - fix x86_64 build
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pacparser/pacparser.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list