source: projects/specs/trunk/g/gnome-dictionary/gnome-dictionary-vl.spec @ 8538

Revision 8538, 3.2 KB checked in by Takemikaduchi, 10 years ago (diff)

fix desktop file

Line 
1Summary:        GNOME Dictionary
2Summary(ja):    GNOME 辞書
3Name:           gnome-dictionary
4Version:        3.10.0
5Release:        3%{?_dist_release}
6License:        GPLv2+
7Group:          User Interface/Desktops
8URL:            http://www.gnome.org
9
10Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.10/%{name}-%{version}.tar.xz
11
12BuildRoot: %{_tmppath}/%{name}-%{version}-root
13
14BuildRequires:  gtk3-devel
15BuildRequires:  itstool
16BuildRequires:  desktop-file-utils
17
18Requires(postun,posttrans):     glib2
19Requires(postun,posttrans):     desktop-file-utils
20
21Vendor:         Project Vine
22Distribution:   Vine Linux
23Packager:       Takemikaduchi
24
25
26%description
27gnome-dictionary provides dictionary definitions of words, using a dictionary source.
28
29%description -l ja
30gnome-dictionary は辞書ソースを使用し、単語の辞書上の定義を提供します。
31
32
33%package        devel
34Summary:        Development files for %{name}
35Summary(ja):    %{name} の開発ファイル
36Group:          Development/Libraries
37Requires:       %{name} = %{version}-%{release}
38Requires:       pkgconfig
39Requires:       gobject-introspection-devel
40
41%description    devel
42The %{name}-devel package contains libraries and header files for
43developing applications that use %{name}.
44
45
46%package        docs
47Summary:        Documentation for %{name}
48Summary(ja):    %{name} 用のドキュメント
49Group:          Documentation
50Requires:       %{name} = %{version}-%{release}
51BuildArch:      noarch
52Provides:       %{name}-doc = %{version}-%{release}
53
54%description    docs
55This package contains documentation for %{name}.
56
57
58%prep
59%setup -q
60
61%build
62%configure
63make %{?_smp_mflags}
64
65%install
66rm -rf $RPM_BUILD_ROOT
67make install DESTDIR=$RPM_BUILD_ROOT
68
69find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
70
71desktop-file-install --vendor gnome --delete-original                   \
72        --dir $RPM_BUILD_ROOT%{_datadir}/applications                   \
73        --add-only-show-in GNOME                                                                \
74        --remove-not-show-in KDE                                                                \
75        $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
76
77%find_lang %{name} --all-name --with-gnome
78
79%clean
80rm -rf $RPM_BUILD_ROOT
81
82%post
83/sbin/ldconfig
84
85%postun
86/sbin/ldconfig
87glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
88update-desktop-database -q &> /dev/null ||:
89
90%posttrans
91glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
92update-desktop-database -q &> /dev/null ||:
93
94
95%files -f %{name}.lang
96%defattr(-,root,root,-)
97%{_bindir}/%{name}
98%{_libdir}/libgdict-1.0.so.*
99%{_datadir}/applications/%{name}.desktop
100%{_datadir}/gdict-1.0/sources/*.desktop
101%{_datadir}/glib-2.0/schemas/org.gnome.dictionary.gschema.xml
102%{_datadir}/%{name}/*.ui
103%{_mandir}/man1/%{name}.1.gz
104
105%files devel
106%defattr(-,root,root,-)
107%{_includedir}/gdict-1.0
108%{_libdir}/libgdict-1.0.so
109%{_libdir}/pkgconfig/gdict-1.0.pc
110
111%files docs
112%defattr(-,root,root,-)
113%{_datadir}/gtk-doc/html/gdict
114
115%changelog
116* Tue Jun 10 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.0-3
117- add OnlyShowIn=GNOME; to gnome-dictionary.desktop
118
119* Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.0-2
120- rebuild with VineSeed environment
121
122* Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.0-1
123- new upstream release
124
125* Sun Aug 11 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.0-1
126- new upstream release
127
128* Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.6.0-1
129- initial build
Note: See TracBrowser for help on using the repository browser.