]> git.pld-linux.org Git - packages/libgnomeprint.git/blob - libgnomeprint.spec
- fixed
[packages/libgnomeprint.git] / libgnomeprint.spec
1 Summary:        Printing library for GNOME
2 Summary(pl):    Biblioteka drukowania dla GNOME
3 Name:           libgnomeprint
4 Version:        1.112.0
5 Release:        1
6 License:        LGPL
7 Group:          Libraries
8 Source0:        ftp://ftp.gnome.org/pub/gnome/pre-gnome2/sources/%{name}/%{name}-%{version}.tar.bz2
9 URL:            http://www.gnome.org/
10 PreReq:         ghostscript-fonts-std
11 BuildRequires:  glib2-devel >= 2.0.1
12 BuildRequires:  libxml2-devel >= 2.4.7
13 BuildRequires:  libart_lgpl-devel
14 BuildRequires:  libbonobo-devel >= 1.110
15 BuildRequires:  freetype-devel
16 BuildRequires:  pango-devel >= 1.0.0
17 BuildRequires:  automake
18 BuildRequires:  autoconf
19 BuildRequires:  libtool
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _prefix         /usr/X11R6
23 %define         _mandir         %{_prefix}/man
24 %define         _sysconfdir     /etc/X11/GNOME2
25
26 %description
27 GNOME (GNU Network Object Model Environment) is a user-friendly set of
28 applications and desktop tools to be used in conjunction with a window
29 manager for the X Window System. The gnome-print package contains
30 libraries and fonts needed by GNOME applications for printing.
31
32 You should install the gnome-print package if you intend to use any of
33 the GNOME applications that can print. If you would like to develop
34 GNOME applications that can print you will also need to install the
35 gnome-print devel package.
36
37 %description -l pl
38 GNOME (GNU Network Object Model Environment) jest zestawem przyjaznych
39 dla u¿ytkownika aplikacji i narzêdzi do u¿ytku w po³±czeniu z zarz±dc±
40 okien X Window System. Pakiet libgnomeprint zawiera biblioteki
41 niezbêdne aplikacjom GNOME do drukowania.
42
43 %package devel
44 Summary:        Include files for libgnomeprint
45 Summary(pl):    Pliki nag³ówkowe libgnomeprint
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}
48 Requires:       glib2-devel >= 2.0.1
49 Requires:       libxml2-devel >= 2.4.7
50 Requires:       libart_lgpl-devel
51 Requires:       libbonobo-devel
52
53 %description devel
54 GNOME (GNU Network Object Model Environment) is a user-friendly set of
55 applications and desktop tools to be used in conjunction with a window
56 manager for the X Window System. The gnome-print-devel package
57 includes the libraries and include files needed for developing
58 applications that use the GNOME printing capabilities.
59
60 You should install the gnome-print-devel package if you would like to
61 develop GNOME applications that will use the GNOME print capabilities.
62 You do not need to install the gnome-print-devel package if you just
63 want to use the GNOME desktop environment.
64
65 %description devel -l pl
66 Pliki nag³ówkowe niezbêdne do kompilacji aplikacji u¿ywaj±cych
67 biblioteki drukowania GNOME.
68
69 %package static
70 Summary:        Static libgnomeprint library
71 Summary(pl):    Statyczna biblioteka libgnomeprint
72 Group:          Development/Libraries
73 Requires:       %{name}-devel = %{version}
74
75 %description static
76 Static version of libgnomeprint library.
77
78 %description static -l pl
79 Statyczna wersja biblioteki libgnomeprint.
80
81 %prep
82 %setup -q
83
84 %build
85 libtoolize --copy --force
86 aclocal
87 autoconf
88 automake -a -c -f
89 %configure \
90         --disable-font-install
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT%{_sysconfdir}/gnome/fonts
96
97 # It would probably be cleaner to use install DESTDIR=$RPM_BUILD_ROOT
98 # instead of %%makeinstall with this hack.
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT \
101         pkgconfigdir=%{_pkgconfigdir} \
102         FONTMAPDIR_STATIC=%{_datadir}/gnome/libgnomeprint-2.0/fonts
103
104 gzip -9nf AUTHORS ChangeLog NEWS README installer/README.*
105
106 %find_lang %{name}-2.0
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %post
112 ## we could pass --dynamic here to install to /etc instead
113 ## but I think it makes more sense to have this not be a config
114 ## file, then people make their changes in /etc if they want
115 %{_bindir}/libgnomeprint-2.0-font-install \
116        --aliases=%{_datadir}/gnome-print/fonts/adobe-urw.font \
117        --target=%{_sysconfdir}/gnome/fonts/libgnomeprint-rpm.fontmap \
118        --recursive --static \
119        %{_datadir}/fonts/Type1
120 /sbin/ldconfig
121
122 %postun -p /sbin/ldconfig
123
124 %files -f %{name}-2.0.lang
125 %defattr(644,root,root,755)
126 %doc *.gz */*.gz
127 %attr(755,root,root) %{_bindir}/*
128 %attr(755,root,root) %{_libdir}/lib*.so.*.*
129 %dir %{_libdir}/gnome-print-*
130 %dir %{_libdir}/gnome-print-*/*
131 %attr(755,root,root) %{_libdir}/gnome-print-*/*/*.so
132 %attr(755,root,root) %{_libdir}/gnome-print-*/*/*.la
133 %{_datadir}/gnome-print-*
134 %{_datadir}/gnome/libgnomeprint-*
135
136 %files devel
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/lib*.so
139 %attr(755,root,root) %{_libdir}/lib*.la
140 %{_includedir}/*
141 %{_pkgconfigdir}/*.pc
142
143 %files static
144 %defattr(644,root,root,755)
145 %{_libdir}/*.a
146 %{_libdir}/gnome-print-*/*/*.a
This page took 0.085888 seconds and 3 git commands to generate.