]> git.pld-linux.org Git - packages/gchempaint.git/blob - gchempaint.spec
- Up to 0.6.9
[packages/gchempaint.git] / gchempaint.spec
1 Summary:        GNOME 2D chemical structure drawing tool
2 Summary(pl.UTF-8):      Program GNOME do rysowania dwuwymiarowych wzorów chemicznych
3 Name:           gchempaint
4 Version:        0.6.9
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Science
8 Source0:        http://savannah.nongnu.org/download/gchempaint/0.6/%{name}-%{version}.tar.bz2
9 # Source0-md5:  3b81f99972bedccd5f19a6bda785d451
10 URL:            http://www.nongnu.org/gchempaint/
11 BuildRequires:  autoconf >= 2.50
12 BuildRequires:  automake
13 BuildRequires:  gnome-chemistry-utils-devel >= 0.4.7
14 BuildRequires:  gnome-doc-utils
15 BuildRequires:  gnome-vfs2-devel >= 2.6.0
16 BuildRequires:  gtk+2-devel >= 2:2.6.0
17 BuildRequires:  libbonoboui-devel >= 2.6.0
18 BuildRequires:  libglade2-devel >= 2.4.0
19 BuildRequires:  libgnomeprintui-devel >= 2.6.0
20 BuildRequires:  libgnomeui-devel >= 2.6.0
21 BuildRequires:  libtool
22 BuildRequires:  rpmbuild(macros) >= 1.198
23 BuildRequires:  shared-mime-info >= 0.12
24 BuildRequires:  which
25 Requires(post,postun):  scrollkeeper
26 Requires(post,postun):  /sbin/ldconfig
27 Requires:       gnome-chemistry-utils >= 0.4.7
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
31
32 %description
33 GChemPaint is a 2D chemical structures editor for the GNOME-2 desktop.
34 GChemPaint is a multi-document application and will be a bonobo server
35 so that some chemistry could be embedded in GNOME applications such as
36 Gnumeric and Abiword.
37
38 %description -l pl.UTF-8
39 GChemPaint jest edytorem dwuwymiarowych wzorów chemicznych dla
40 środowiska GNOME-2. GChemPaint pozwala na edycję wielu dokumentów
41 jednocześnie i będzie serwerem bonobo, co pozwoli na używanie wzorów
42 chemicznych w innych aplikacjach GNOME, takich jak Gnumeric czy
43 Abiword.
44
45 %package devel
46 Summary:        Header files for gchempaint
47 Summary(pl.UTF-8):      Pliki nagłówkowe dla programu gchempaint
48 Group:          X11/Development/Libraries
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       gnome-chemistry-utils-devel >= 0.4.7
51 Requires:       gnome-vfs2-devel >= 2.6.0
52 Requires:       gtk+2-devel >= 2:2.6.0
53 Requires:       libbonoboui-devel >= 2.6.0
54 Requires:       libglade2-devel >= 2.4.0
55 Requires:       libgnomeprintui-devel >= 2.6.0
56 Requires:       libgnomeui-devel >= 2.6.0
57
58 %description devel
59 The gchempaint-devel package contains the header files necessary for
60 developing programs using gchempaint, and especially for writing new
61 plugins.
62
63 %description devel -l pl.UTF-8
64 Pakiet gchempaint-devel zawiera pliki nagłówkowe niezbędne do
65 tworzenia oprogramowania wykorzystującego gchempaint, a zwłaszcza do
66 tworzenia wtyczek do niego.
67
68 %package static
69 Summary:        Static gchempaint libraries
70 Summary(pl.UTF-8):      Statyczne biblioteki programu gchempaint
71 Group:          X11/Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73
74 %description static
75 Static gchempaint libraries.
76
77 %description static -l pl.UTF-8
78 Statyczne biblioteki programu gchempaint.
79
80 %prep
81 %setup -q
82
83 %build
84 %{__libtoolize}
85 %{__aclocal}
86 %{__autoconf}
87 %{__autoheader}
88 %{__automake}
89 %configure \
90         --disable-update-databases \
91         --enable-static
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.{la,a}
101
102 %find_lang %{name} --with-gnome
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post
108 %scrollkeeper_update_post
109 /sbin/ldconfig
110 umask 022
111 update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||:
112 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
113
114 %postun
115 %scrollkeeper_update_postun
116 /sbin/ldconfig
117 if [ "$1" = "0" ]; then
118         umask 022
119         update-mime-database %{_datadir}/mime >/dev/null 2>&1
120         [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
121 fi
122
123 %files -f %{name}.lang
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog NEWS README TODO
126 %attr(755,root,root) %{_bindir}/%{name}
127 %attr(755,root,root) %{_bindir}/%{name}-viewer
128 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
129 %dir %{_libdir}/%{name}
130 %dir %{_libdir}/%{name}/plugins
131 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so
132 %{_libdir}/bonobo/servers/%{name}.server
133 %{_sysconfdir}/gconf/schemas/*
134 %{_datadir}/%{name}
135 %{_datadir}/mime/packages/*
136 %{_desktopdir}/%{name}.desktop
137 %{_iconsdir}/hicolor/128x128/apps/*
138 %{_iconsdir}/hicolor/128x128/mimetypes/*
139 %{_iconsdir}/hicolor/32x32/apps/*
140 %{_iconsdir}/hicolor/32x32/mimetypes/*
141 %{_iconsdir}/hicolor/48x48/apps/*
142 %{_iconsdir}/hicolor/48x48/mimetypes/*
143 %{_iconsdir}/hicolor/72x72/apps/*
144 %{_iconsdir}/hicolor/72x72/mimetypes/*
145 %{_omf_dest_dir}/gchempaint
146
147 %files devel
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_libdir}/lib*.so
150 %{_libdir}/lib*.la
151 %{_includedir}/%{name}
152
153 %files static
154 %defattr(644,root,root,755)
155 %{_libdir}/lib*.a
This page took 0.054666 seconds and 3 git commands to generate.