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