1 | Name: kfloppy |
---|
2 | Summary: Floppy formatter for KDE |
---|
3 | Summary(ja): KDE用フロッピーフォーマッター |
---|
4 | Version: 4.14.3 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | License: GPLv2 |
---|
8 | Group: Applications/Accessories |
---|
9 | URL: https://www.kde.org/ |
---|
10 | |
---|
11 | Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | |
---|
15 | BuildRequires: kdelibs-devel >= %{version} |
---|
16 | BuildRequires: soprano-devel |
---|
17 | |
---|
18 | # when split occurred |
---|
19 | Conflicts: kdeutils < 4.8.0 |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | |
---|
24 | %description |
---|
25 | |
---|
26 | |
---|
27 | %prep |
---|
28 | %setup -q |
---|
29 | |
---|
30 | |
---|
31 | %build |
---|
32 | mkdir -p %{_target_platform} |
---|
33 | pushd %{_target_platform} |
---|
34 | %cmake \ |
---|
35 | -DCMAKE_BUILD_TYPE=release \ |
---|
36 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
37 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
38 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
39 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
40 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
41 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
42 | .. |
---|
43 | popd |
---|
44 | |
---|
45 | make %{?_smp_mflags} -C %{_target_platform} |
---|
46 | |
---|
47 | |
---|
48 | %install |
---|
49 | rm -rf %{buildroot} |
---|
50 | |
---|
51 | make install/fast DESTDIR=%{buildroot} -C %{_target_platform} |
---|
52 | |
---|
53 | |
---|
54 | %post |
---|
55 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
56 | |
---|
57 | %posttrans |
---|
58 | update-desktop-database -q &> /dev/null ||: |
---|
59 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
60 | |
---|
61 | %postun |
---|
62 | if [ $1 -eq 0 ] ; then |
---|
63 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
64 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
65 | update-desktop-database -q &> /dev/null ||: |
---|
66 | fi |
---|
67 | |
---|
68 | |
---|
69 | %files |
---|
70 | %doc COPYING README |
---|
71 | %{_bindir}/%{name} |
---|
72 | %{_datadir}/applications/kde4/KFloppy.desktop |
---|
73 | %{_datadir}/icons/hicolor/*/*/* |
---|
74 | %{_docdir}/HTML/en/%{name} |
---|
75 | |
---|
76 | %changelog |
---|
77 | * Fri Jan 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1 |
---|
78 | - initila build |
---|