File: libpgf.spec.in

package info (click to toggle)
libpgf 6.14.12-3.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 1,140 kB
  • ctags: 735
  • sloc: cpp: 4,373; ansic: 502; makefile: 85; sh: 2
file content (91 lines) | stat: -rwxr-xr-x 1,976 bytes parent folder | download | duplicates (2)
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
87
88
89
90
91
%define name     @PACKAGE@
%define ver      @VERSION@
%define prefix   /usr
%define datadir  %{prefix}/share
%define pkgname %{name}-%{ver}

Summary: PGF (Progressive Graphics File) library
Name: %{name}
Version: %{ver}
Vendor: TODO (www.libpgf.org)
Release: %{rpm_release}
License: LGPL
Group: System Environment/Libraries
URL: http://www.libpgf.org
Source: ftp://www.libpgf.org/pub/%name/%{pkgname}.tar.gz
BuildRoot: /var/tmp/%{pkgname}-%{user}/
Docdir: %{datadir}/doc/


%description
libpgf is a library for working with PGF (Progresive Graphics File) images.

# This is the summary for the devel rpm
%package devel
Summary: Include files, libraries and documentation for development
Requires: %{name} = %{ver}
Group: Development/Libraries

# This is the description for the devel package
%description devel
libpgf is a library for working with PGF (Progresive Graphics File) images.

%prep

%setup 
CFLAGS=$RPM_OPT_FLAGS ./configure %{extra_configure_options}  --prefix=%{prefix}

%build
make 

      
%install
if test "/" != %{buildroot}; then 
	rm -rf %{buildroot};
else
     echo "buildroot set to /, not deleting!";
fi;
%makeinstall


%clean
if test "/" != %{buildroot}; then 
	rm -rf %{buildroot};
else
     echo "buildroot set to /, not deleting!";
fi;

# Since this is a library, we should run ldconfig
# after installation and un-installation
%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

# These are all files which make up the rpm
# Shell globbing may be used
%files
%defattr(-, root, root)
%{prefix}/lib/libpgf.so.*

# The files which go in the devel package
%files devel
%defattr(-, root, root)

%{prefix}/include/libpgf/*
%{prefix}/lib/libpgf.a
%{prefix}/lib/libpgf.so
%{prefix}/lib/libpgf.la
%{prefix}/lib/pkgconfig/@PACKAGE@.pc

%{datadir}/doc/%{name}-%{ver}/html/*
%{datadir}/man/man3/*


# This is a changelog for the RPM ONLY!
%changelog

* Mon May 29 2005 Thomas Sondergaard <ts@medical-insight.com>  
  initial spec file created from template