source: projects/specs/branches/6/g/gpointing-device-settings/gpointing-device-settings-vl.spec @ 3911

Revision 3911, 4.1 KB checked in by kazutaka, 13 years ago (diff)

ソースの更新です。

Line 
1Summary:        A tool to configure pointing devices
2Summary(ja):    ポインティングデバイスを設定するためのツール
3
4Name:           gpointing-device-settings
5Version:        1.5.1
6Release:        1%{?_dist_release}
7License:        LGPLv3+
8Group:          Applications/System
9URL:            http://live.gnome.org/GPointingDeviceSettings
10
11Source:         %{name}-%{version}.tar.gz
12# see https://aur.archlinux.org/packages.php?ID=25663&detail=1
13Patch0:         gpointing-device-settings-1.5.1-fix-gdk-display.patch
14
15BuildRoot:      %{_tmppath}/%{name}-%{version}-build
16BuildRequires:  GConf2-devel
17BuildRequires:  gtk2-devel
18BuildRequires:  intltool
19BuildRequires:  gnome-settings-daemon-devel >= 2.28.0
20Requires(post): GConf2
21Requires(post): desktop-file-utils
22Requires(postun):       desktop-file-utils
23
24Vendor: Project Vine
25Distribution: Vine Linux
26
27%description
28This application can be used to configure pointing devices like trackpoints
29or touchpads, that are commonly used on laptops.
30
31
32%package devel
33Summary:        A tool to configure pointing devices
34License:        LGPLv3+
35Group:          Development/Libraries
36Requires:       %{name} = %{version}, GConf2-devel, gtk2-devel
37
38%description devel
39This application can be used to configure pointing devices like trackpoints
40or touchpads, that are commonly used on laptops.
41
42This package contains all necessary include files and libraries needed
43to develop modules for gpointing-device-settings.
44
45
46%prep
47%setup -q
48%patch0 -p1 -b .gdk-display
49
50%build
51%configure --disable-static
52%{__make} %{?_smp_mflags}
53
54%install
55make install DESTDIR=$RPM_BUILD_ROOT
56
57# install .desktop
58cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop <<EOF
59[Desktop Entry]
60Name=Pointing Devices
61Name[ja]=ポインティングデバイス
62Comment=Configure pointing devices
63Comment[ja]=ポインティングデバイスを設定します
64Type=Application
65TryExec=%{name}
66Exec=%{_bindir}/%{name}
67Icon=input-touchpad.png
68Terminal=false
69StartupNotify=true
70Categories=GNOME;GTK;Settings;HardwareSettings;
71OnlyShowIn=GNOME;Categories=Graphics;2DGraphics;RasterGraphics;GTK;
72EOF
73
74# remove unnecessary files
75find $RPM_BUILD_ROOT/%{_libdir} -name "*.la" -exec %{__rm} -f "{}" \;
76find $RPM_BUILD_ROOT/%{_libdir} -name "*.a" -exec %{__rm} -f "{}" \;
77
78%find_lang %{name}
79     
80
81%clean
82rm -rf $RPM_BUILD_ROOT
83
84%pre
85if [ "$1" -gt 1 ]; then
86  export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
87  SCHEMAS="gpointing-device-settings_gnome_settings_daemon.schemas"
88  for S in $SCHEMAS; do
89    gconftool-2 --makefile-uninstall-rule \
90     %{_sysconfdir}/gconf/schemas/$S > /dev/null
91  done
92fi
93
94%post
95/sbin/ldconfig
96update-desktop-database %{_datadir}/applications >& /dev/null ||:
97export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
98SCHEMAS="gpointing-device-settings_gnome_settings_daemon.schemas"
99for S in $SCHEMAS; do
100  gconftool-2 --makefile-install-rule \
101   %{_sysconfdir}/gconf/schemas/$S > /dev/null
102done
103
104%preun
105if [ "$1" -eq 0 ]; then
106  export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
107  SCHEMAS="gpointing-device-settings_gnome_settings_daemon.schemas"
108  for S in $SCHEMAS; do
109    gconftool-2 --makefile-uninstall-rule \
110     %{_sysconfdir}/gconf/schemas/$S > /dev/null
111  done
112fi
113
114%postun
115update-desktop-database %{_datadir}/applications >& /dev/null ||:
116
117
118
119%files -f %{name}.lang
120%defattr(-,root,root,-)
121%doc COPYING MAINTAINERS NEWS TODO
122%{_sysconfdir}/gconf/schemas/*
123%{_bindir}/*
124%{_datadir}/%{name}
125%{_datadir}/applications/%{name}.desktop
126%{_libdir}/%{name}
127%{_libdir}/gnome-settings-daemon-2.0/*.so
128%{_libdir}/gnome-settings-daemon-2.0/*.gnome-settings-plugin
129%{_libdir}/*.so.*
130%{_mandir}/man1/%{name}.1*
131
132%files devel
133%defattr(-,root,root,-)
134%{_includedir}/gpointing-device-settings
135%{_libdir}/*.so
136%{_libdir}/pkgconfig/*.pc
137
138
139%changelog
140* Thu May 12 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.5.1-1
141- new upstream release
142- specify required version for gnome-settings-daemon-devel >= 2.28.0
143- add patch0 to fix compile error
144- add Vendor and Distribution tags
145- add .desktop file
146
147* Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.1-1
148- initial build for Vine Linux
149
Note: See TracBrowser for help on using the repository browser.