source: projects/specs/trunk/k/kalzium/kalzium-vl.spec @ 9222

Revision 9222, 4.6 KB checked in by Takemikaduchi, 9 years ago (diff)

R: rebuild
openbabel: add BR
k3b: new upstream release
others: KDE-4.14.3

Line 
1Name: kalzium
2Summary: Periodic table and chemistry tools for KDE
3Version: 4.14.3
4Release: 1%{?_dist_release}
5
6License: GPLv2+
7Group: Applications/Edutainment
8URL: http://edu.kde.org/kalzium/
9
10Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
11
12## upstream patches
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-root
15BuildRequires: avogadro-devel
16BuildRequires: desktop-file-utils
17BuildRequires: eigen2-devel
18BuildRequires: kdelibs4-devel >= %{version}
19BuildRequires: ocaml
20BuildRequires: openbabel-devel >= 2.2.0
21BuildRequires: soprano-devel
22BuildRequires: python-devel
23
24Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
25
26Conflicts: kdeedu4 < 4.6.50
27
28Vendor: Project Vine
29Distribution: Vine Linux
30
31%description
32Kalzium is a full-featured chemistry application for KDE, including
33a Periodic Table of Elements, chemical reference, chemical equation
34solver, and 3D molecule viewer.
35
36This package is part of the KDE education module.
37
38%package libs
39Summary: Runtime libraries for %{name}
40Summary(ja): %{name} のランタイムライブラリ
41Group:   System Environment/Libraries
42Conflicts: kdeedu4-libs < 4.6.50
43
44%description libs
45%{summary}.
46
47%package devel
48Summary: Development files for %{name}
49Summary(ja): %{name} の開発用ファイル
50Group: Development/Libraries
51Requires: %{name}-libs = %{version}-%{release}
52Conflicts: kdeedu4-devel < 4.6.50
53
54%description devel
55Header files for developing applications using %{name}.
56
57
58%prep
59%setup -q
60
61%build
62mkdir -p %{_target_platform}
63pushd %{_target_platform}
64%cmake \
65    -DCMAKE_BUILD_TYPE=release \
66    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
67    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
68    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
69    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
70    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
71    ..
72popd
73
74make %{?_smp_mflags} -C %{_target_platform}
75
76%install
77rm -rf $RPM_BUILD_ROOT
78make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
79
80%clean
81rm -rf $RPM_BUILD_ROOT
82
83%check
84for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
85    desktop-file-validate $f
86done
87
88
89%post
90touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
91
92%posttrans
93update-desktop-database -q &> /dev/null ||:
94gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
95
96%postun
97if [ $1 -eq 0 ] ; then
98    update-desktop-database -q &> /dev/null ||:
99    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
100    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
101fi
102
103%post libs -p /sbin/ldconfig
104
105%postun libs -p /sbin/ldconfig
106
107
108%files
109%defattr(-,root,root)
110%doc COPYING COPYING.DOC
111%{_bindir}/kalzium
112%{_libdir}/kde4/*.so
113%{_datadir}/appdata/kalzium.appdata.xml
114%{_datadir}/applications/kde4/kalzium_cml.desktop
115%{_datadir}/applications/kde4/kalzium.desktop
116%{_datadir}/config/kalzium.knsrc
117%{_datadir}/config.kcfg/kalzium.kcfg
118%{_datadir}/icons/hicolor/*/*/*
119%{_datadir}/kde4/apps/desktoptheme/*
120%{_datadir}/kde4/apps/kalzium
121%{_datadir}/kde4/apps/libkdeedu/*
122%{_datadir}/kde4/services/*.desktop
123%{_mandir}/man1/kalzium*
124%doc %{_docdir}/HTML/en/kalzium/
125
126%files libs
127%defattr(-,root,root)
128%{_libdir}/libscience.so.*
129
130%files devel
131%defattr(-,root,root)
132%{_includedir}/kde4/libkdeedu/*.h
133%{_libdir}/libscience.so
134
135
136%changelog
137* Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
138- new upstream release
139
140* Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
141- new upstream release
142
143* Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
144- new upstream release
145
146* Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
147- new upstream release
148
149* Sun Dec 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-2
150- rebuild with libboost-1.54.0
151
152* Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
153- new upstream release
154
155* Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
156- new upstream release
157
158* Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
159- new upstream release
160
161* Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
162- new upstream release
163
164* Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
165- new upstream release
166
167* Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
168- new upstream release
169
170* Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
171- new upstream release
172
173* Sun Feb 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-3
174- rebuild with python-2.7.2
175- add BuildRequires: python-devel
176
177* Tue Jan 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-2
178- rebuild with glew-1.7.0
179
180* Thu Sep  8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
181- split from kdeedu
182
Note: See TracBrowser for help on using the repository browser.