Created
June 29, 2015 12:17
-
-
Save CapnKernel/409233f4c3516d3b64f1 to your computer and use it in GitHub Desktop.
.spec files for Pidgin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %global srcname lwqq | |
| %global rel 1 | |
| # %global _hardened_build 1 | |
| # TODO: Non master releases: https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Snapshot_packages | |
| Name: %{srcname} | |
| Version: 0.6.0 | |
| Release: %{rel}%{?dist} | |
| Summary: Libraries for lwqq | |
| License: GPLv3 | |
| URL: https://github.com/xiehuc/lwqq | |
| # Source0: https://github.com/xiehuc/%{srcname}/archive/master.zip | |
| # Source0: file:///home/mjd/git/lwqq-%{version}-%{rel}.tar.bz2 | |
| Source0: lwqq.tar.bz2 | |
| BuildRequires: libpurple-devel >= 2.8.0 | |
| BuildRequires: glib2-devel >= 2 | |
| BuildRequires: cmake pkgconfig | |
| BuildRequires: libcurl-devel >= 7.22 | |
| BuildRequires: sqlite-devel | |
| BuildRequires: libev-devel | |
| BuildRequires: js-devel | |
| %description | |
| This package contains lwqq, an excellent, safe and useful library for the WebQQ protocol | |
| %package devel | |
| Summary: Development files for %{name} | |
| Requires: %{name}%{?_isa} = %{version}-%{release} | |
| %description devel | |
| The %{name}-devel package contains libraries and header files for | |
| developing applications that use %{name}. | |
| %prep | |
| %setup -q -n lwqq | |
| %build | |
| (mkdir build && cd build && %{cmake} -DCMAKE_BUILD_TYPE=Debug ..) | |
| make -C build %{?_smp_mflags} | |
| %install | |
| [ "%{buildroot}" = "" ] || rm -rf "%{buildroot}" | |
| %make_install -C build | |
| find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' | |
| %post -p /sbin/ldconfig | |
| %postun -p /sbin/ldconfig | |
| %files | |
| %{_libdir}/liblwqq.so.%{version} | |
| %{_datadir}/lwqq/encrypt.js | |
| # %{_bindir}/lwqq-cli | |
| %files devel | |
| %{_libdir}/liblwqq.a | |
| %{_libdir}/liblwqq.so | |
| %{_libdir}/liblwqq.so.? | |
| %{_libdir}/pkgconfig/lwqq.pc | |
| %{_includedir}/lwqq/* | |
| %changelog | |
| * Sun Jun 29 2014 Mitch Davis <[email protected]> | |
| - First revision |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %global srcname pidgin-lwqq | |
| %global rel 1 | |
| # %global _hardened_build 1 | |
| # TODO: Non master releases: https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Snapshot_packages | |
| Name: %{srcname} | |
| Version: 0.6.0 | |
| Release: %{rel}%{?dist} | |
| Summary: QQ plugin for Pidgin | |
| License: GPLv3 | |
| URL: https://github.com/xiehuc/pidgin-lwqq | |
| # Source0: https://github.com/xiehuc/%{srcname}/archive/master.zip | |
| # Source0: file:///home/mjd/git/pidgin-lwqq-%{version}-%{rel}.tar.bz2 | |
| Source0: pidgin-lwqq.tar.bz2 | |
| # BuildRequires: pkgconfig(lwqq) = %{version} | |
| BuildRequires: lwqq-devel = %{version}-%{release} | |
| BuildRequires: gettext | |
| Requires: pidgin | |
| %description | |
| pidgin-lwqq is an open source plugin for the Pidgin IM client | |
| which allows you to connect to the QQ network. | |
| Features: | |
| * send / recv buddy|group|discu messages | |
| * send / recv picture messages | |
| * send / recv qq face (you should use webqq faces theme in settings) | |
| * send / recv input notify | shake message | |
| * change buddy|group|discu markname | |
| * avatar | |
| * change buddy category | |
| * confirm buddy added request | |
| * visit buddy qzone | |
| * group whisper message | |
| * change status/business card | |
| * support multi webqq account | |
| * support send/recv offline file | |
| * support font style | |
| * support block group message | |
| * support recv file trans | |
| * support local qqnumber cache | |
| * support add friend/group | |
| * support import online chat log | |
| %prep | |
| %setup -q -n pidgin-lwqq | |
| %build | |
| (mkdir build && cd build && %{cmake} -DCMAKE_BUILD_TYPE=Debug ..) | |
| make -C build %{?_smp_mflags} | |
| %install | |
| [ "%{buildroot}" = "" ] || rm -rf "%{buildroot}" | |
| %make_install -C build | |
| %find_lang %{name} | |
| %post -p /sbin/ldconfig | |
| %postun -p /sbin/ldconfig | |
| %files -f %{name}.lang | |
| %{_libdir}/purple-2/libwebqq.so | |
| %{_datadir}/pixmaps/pidgin/protocols/*/webqq.png | |
| %{_datadir}/pixmaps/pidgin/protocols/scalable.png/webqq.svg | |
| %{_datadir}/icons/hicolor/*/apps/webqq.* | |
| %{_datadir}/pixmaps/pidgin/emotes/webqq/* | |
| %{_datadir}/pixmaps/pidgin/emotes/webqq_static/*.png | |
| %{_datadir}/pixmaps/pidgin/emotes/*/theme | |
| %{_datadir}/lwqq/baozou/*.gif | |
| %{_datadir}/lwqq/emoji/*.png | |
| %{_datadir}/lwqq/hash.js | |
| %{_datadir}/lwqq/smiley.txt | |
| %changelog | |
| * Sun Jun 29 2014 Mitch Davis <[email protected]> | |
| - First version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment