Logoj0ke.net Open Build Service > Projects > devel:libs > pslib > Changes
Sign Up | Log In

Changes of Revision 4

[-] Added pslib.spec
x
 
1
@@ -0,0 +1,102 @@
2
+Summary: Library for creating PostScript
3
+Name: pslib
4
+Version: 0.4.1
5
+Release: 1
6
+License: LGPL
7
+Group: Development/Libraries
8
+Source: http://prdownloads.sourceforge.net/pslib/pslib-%{version}.tar.bz2
9
+BuildRoot: %{_tmppath}/%{name}-%{version}-build 
10
+URL: http://pslib.sourceforge.net/
11
+BuildRequires: intltool libpng-devel libjpeg-devel gcc-c++ bison
12
+BuildRequires: giflib-devel libtiff-devel gettext-devel glib2-devel
13
+#BuildRequires: docbook2X docbook-utils
14
+Patch0: pslib-configure.patch 
15
+
16
+%description
17
+This library allows to create PostScript files.
18
+
19
+
20
+%package -n libps0
21
+Summary: Libraries, includes, etc. to develop PostScript applications
22
+Group: Development/Libraries
23
+Provides: %{name} = %{version}
24
+Obsoletes : pslib =< 0.2.7
25
+
26
+%description -n libps0
27
+
28
+This library allows to create PostScript files.
29
+
30
+
31
+%package -n libps-devel
32
+Summary: Libraries, includes, etc. to develop PostScript applications
33
+Group: Development/Libraries
34
+Requires: libps0 = %{version} glibc-devel
35
+Provides: pslib-devel = %{version}
36
+
37
+%description -n libps-devel
38
+
39
+Libraries, include files, etc you can use to develop PostScript applications.
40
+
41
+%prep
42
+
43
+%setup -q
44
+%patch -p1
45
+
46
+%build
47
+
48
+CFLAGS="%{optflags} -fno-strict-aliasing"
49
+CXXFLAGS="%{optflags} -fno-strict-aliasing"
50
+%if 0%{?suse_version} > 1000
51
+CFLAGS="$CFLAGS -fstack-protector"
52
+CXXFLAGS="$CXXFLAGS -fstack-protector"
53
+%endif
54
+
55
+export CFLAGS
56
+export CXXFLAGS
57
+export LDFLAGS="-Wl,--as-needed"
58
+
59
+libtoolize --force
60
+aclocal --force
61
+autoheader --force
62
+automake --force --copy --add-missing
63
+intltoolize --copy --force
64
+autoconf --force
65
+
66
+%configure --with-png=%{_usr} --with-jpeg=%{_usr} \
67
+           --with-gif=%{_usr} --with-tiff=%{_usr} \
68
+           --without-debug --with-libdir=%{_lib} \
69
+           --disable-static --disable-rpath --with-pic 
70
+
71
+%{__make} %{?jobs:-j%jobs}
72
+
73
+%install
74
+
75
+%{__make} DESTDIR=%{buildroot} install
76
+
77
+%find_lang %{name}
78
+
79
+%clean
80
+
81
+%{__rm} -rf %{buildroot}
82
+
83
+%post -n libps0 -p /sbin/ldconfig
84
+
85
+%postun -n libps0 -p /sbin/ldconfig
86
+
87
+%files -n libps0 -f %{name}.lang
88
+%defattr(-, root, root)
89
+%{_libdir}/lib*.so.0*
90
+
91
+%files -n libps-devel
92
+%defattr(-, root, root)
93
+%doc AUTHORS ChangeLog NEWS README COPYING
94
+%{_libdir}/lib*.so
95
+%{_includedir}/*
96
+%{_libdir}/pkgconfig/*
97
+%dir %{_datadir}/pslib
98
+%{_datadir}/pslib/*
99
+#%doc %{_mandir}/man3/*.3*
100
+%exclude %{_libdir}/*.la
101
+
102
+%changelog
103
+
104