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