File: libprintsys.spec

package info (click to toggle)
libprintsys 0.6-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,568 kB
  • ctags: 181
  • sloc: sh: 10,859; ansic: 1,620; makefile: 91
file content (86 lines) | stat: -rw-r--r-- 2,223 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
%define name      libprintsys
%define version   0.6
%define rel       1
%define prefix    /usr

Name: %{name}
Version: %{version}
Release: %{rel}
Summary: Library to provide standard API for print system functions
License: LGPL
Group: System Environment/Libraries
BuildRoot: /tmp/%{name}-root

Source0: %{name}-%{version}.tar.gz

%package devel
Summary: Headers and additional files to develop programs using libprintsys.
Group: Development/Libraries
Requires: libprintsys

%description
Many programs print by execing /usr/bin/lpr, and get printer info by manually
reading in /etc/printcap.  libprintsys provides a standard API for performing
ehese functions.

%description devel
To develop programs based upon the libprintsys library, the system needs to
have these header and object files available for creating the executables.

%prep
%setup

%build
./configure --prefix=%{_prefix} \
            --exec-prefix=%{_exec_prefix} \
            --bindir=%{_bindir} \
            --sbindir=%{_sbindir} \
            --sysconfdir=%{_sysconfdir} \
            --datadir=%{_datadir} \
            --includedir=%{_includedir} \
            --libdir=%{_libdir} \
            --libexecdir=%{_libexecdir} \
            --localstatedir=%{_localstatedir} \
            --sharedstatedir=%{_sharedstatedir} \
            --mandir=%{_mandir} \
            --infodir=%{_infodir}
make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_prefix}
make DESTDIR="$RPM_BUILD_ROOT" install

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%{_bindir}/pcap
%{_libdir}/*.so.*
%doc README ChangeLog AUTHORS COPYING NEWS TODO new-functions-map

%files devel
%defattr(-, root, root)
%{_libdir}/lib*.so
%{_libdir}/*.a
%{_libdir}/*.la
%{_includedir}/*

%changelog
* Fri Jun 29 2001 Ben Woodard <ben@valinux.com>
- dropped the release down 1 because the version increased

* Thu Jun 28 2001 Ben Woodard <ben@valinux.com>
- Forgot to include pcap.

* Thu May 24 2001 Ben Woodard <ben@valinux.com>
- fixed a typo that made the devel package depend on libppd rather than 
  libprintsys.

* Wed May 23 2001 Nick Moffitt <nick@valinux.com>
- imported libppd spec file into libprintsys.