]> git.pld-linux.org Git - packages/gammu.git/blame_incremental - gammu.spec
- up to 1.12.0,NFY
[packages/gammu.git] / gammu.spec
... / ...
CommitLineData
1Summary: GNU tool suite for mobile phones
2Summary(pl.UTF-8): Zestaw narzędzi GNU dla telefonów komórkowych
3Name: gammu
4Version: 1.12.0
5Release: 0.1
6Epoch: 1
7License: GPL v2
8Group: Applications/Communications
9Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
10# Source0-md5: 260035c1647bab396dfd9b35d78a3ad8
11Patch0: %{name}-etc_dir.patch
12URL: http://www.gammu.org/
13BuildRequires: bluez-libs-devel
14BuildRequires: cmake
15BuildRequires: gettext-devel
16BuildRequires: mysql-devel
17BuildRequires: postgresql-devel
18Requires: %{name}-libs = %{epoch}:%{version}-%{release}
19Provides: mygnokii2
20Obsoletes: mygnokii2
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Gammu (formerly known as MyGnokii2) is cellular manager for various
25mobile phones and modems. It currently supports Nokia 3210, 33xx,
263410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
278310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
28WaveCom, IPAQ, and other). It has a command line version with many
29functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
30calls, etc. It can also make full backups and restore them.
31
32%description -l pl.UTF-8
33Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
34różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
353210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
3682xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
37Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
38wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
39WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
40kopie zapasowe danych i odtwarzać je.
41
42%package libs
43Summary: Gammu library
44Summary(pl.UTF-8): Biblioteka Gammu
45Group: Libraries
46
47%description libs
48Gammu tool suite library.
49
50%description libs -l pl.UTF-8
51Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
52
53%package devel
54Summary: Header files for Gammu tool suite for mobile phones
55Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
56Group: Development/Libraries
57Requires: %{name}-libs = %{epoch}:%{version}-%{release}
58
59%description devel
60Header files for Gammu tool suite for mobile phones.
61
62%description devel -l pl.UTF-8
63Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu.
64
65%package static
66Summary: Gammu static library
67Summary(pl.UTF-8): Biblioteka statyczna Gammu
68Group: Development/Libraries
69Requires: %{name}-devel = %{epoch}:%{version}-%{release}
70
71%description static
72Gammu static library.
73
74%description static -l pl.UTF-8
75Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
76
77%prep
78%setup -q
79#%patch0 -p1
80
81%build
82mkdir -p build
83cd build
84%cmake ../ \
85 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
86 -DENABLE_SHARED=OFF \
87 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
88%{__make}
89mv common/libGammu.a ..
90%cmake ../ \
91 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
92 -DENABLE_SHARED=ON \
93 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
94%{__make}
95
96%install
97rm -rf $RPM_BUILD_ROOT
98install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
99
100%{__make} -C build install \
101 DESTDIR=$RPM_BUILD_ROOT
102
103install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
104cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
105install libGammu.a $RPM_BUILD_ROOT%{_libdir}
106%find_lang %{name}
107cd $RPM_BUILD_ROOT%{_libdir}
108ln -sf libGammu.so.1.11.92 libGammu.so
109
110rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
111
112%clean
113rm -rf $RPM_BUILD_ROOT
114
115%post -p /sbin/ldconfig
116%postun -p /sbin/ldconfig
117
118%files -f %{name}.lang
119%defattr(644,root,root,755)
120%doc ChangeLog docs/user/gammu.htm docs/user/readme.htm other/bash README SUPPORTERS
121%doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt
122%attr(755,root,root) %{_bindir}/%{name}
123%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
124%{_examplesdir}/%{name}-%{version}
125%{_mandir}/man1/*
126
127%files libs
128%defattr(755,root,root,755)
129%attr(755,root,root) %{_libdir}/*.so.*
130
131%files devel
132%defattr(644,root,root,755)
133%attr(755,root,root) %{_bindir}/%{name}-config
134%attr(755,root,root) %{_libdir}/*.so
135%{_includedir}/*
136%{_pkgconfigdir}/*
137
138%files static
139%defattr(755,root,root,755)
140%{_libdir}/*.a
This page took 0.05758 seconds and 4 git commands to generate.