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

Revision 9222, 1.8 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:    kcalc
2Summary: A calculator for KDE
3Summary(ja): KDE用電卓
4Version: 4.14.3
5Release: 1%{?_dist_release}
6
7License: GPLv2
8Group:   Applications/Accessories
9URL:     https://www.kde.org/
10
11Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
12
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14
15BuildRequires: kdelibs-devel >= %{version}
16BuildRequires: soprano-devel
17BuildRequires: gmp-devel
18
19# when split occurred
20Conflicts: kdeutils < 4.8.0
21
22Vendor: Project Vine
23Distribution: Vine Linux
24
25%description
26Kcalc is a calculator for &kde;. In the simple mode it can be used
27for basic arithmetic operations, but provides advanced modes for
28scientific, statistical and numeral system calculations.
29
30
31%prep
32%setup -q
33
34
35%build
36mkdir -p %{_target_platform}
37pushd %{_target_platform}
38%cmake \
39    -DCMAKE_BUILD_TYPE=release \
40    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
41    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
42    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
43    -DLIB_INSTALL_DIR:PATH=%{_libdir} \
44    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
45    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
46    ..
47popd
48
49make %{?_smp_mflags} -C %{_target_platform}
50
51
52%install
53rm -rf %{buildroot}
54
55make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
56
57
58%posttrans
59update-desktop-database -q &> /dev/null ||:
60
61%postun
62if [ $1 -eq 0 ] ; then
63  update-desktop-database -q &> /dev/null ||:
64fi
65
66
67%files
68%doc COPYING COPYING.LIB ChangeLog README
69%{_bindir}/%{name}
70%{_libdir}/libkdeinit4_kcalc.so
71%{_datadir}/applications/kde4/%{name}.desktop
72%{_datadir}/config.kcfg/%{name}.kcfg
73%{_datadir}/kde4/apps/%{name}
74%{_datadir}/kde4/apps/kconf_update/kcalcrc.upd
75%{_docdir}/HTML/en/%{name}
76
77%changelog
78* Fri Jan 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
79- initila build
Note: See TracBrowser for help on using the repository browser.