A new user interface for you! Read more...

File twitcurl.spec of Package libtwitcurl

#
# spec file for package twitcurl
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           twitcurl
Version:        0.1
Release:        0
Summary:        twitcurl is a pure C++ library for twitter APIs.
License:        GPL-2.0+
Group:          System/Libraries
Url:            https://github.com/swatkat/twitcurl
Source:         %{name}-%{version}.tar.gz
BuildRequires:  liboauth-devel
BuildRequires:  libcurl-devel
BuildRequires:  libopenssl-devel
BuildRequires:  libtool
BuildRequires:  cmake
BuildRequires:  pkg-config
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
twitcurl is a pure C++ library for twitter APIs. twitcurl uses cURL for handling HTTP requests and responses. 
twitcurl has been tested on Microsoft Windows, Ubuntu and Debian. 
In fact, it works just fine on any operating system that supports cURL.


%define libname libtwitcurl1
%package -n %{libname}
Group:          System/Libraries
Summary:        Shared library from libtwitcul
%description -n %{libname}
twitcurl is a pure C++ library for twitter APIs. twitcurl uses cURL for handling HTTP requests and responses. 
twitcurl has been tested on Microsoft Windows, Ubuntu and Debian. 
In fact, it works just fine on any operating system that supports cURL.

This archive contains the shared library files from libtwitcurl.

%package devel
Summary:        Development and Include Files for libtwitcul
Group:          Development/Libraries/C and C++
Requires:       glibc-devel
Requires:       %{libname} = %{version}
%description devel
twitcurl is a pure C++ library for twitter APIs. twitcurl uses cURL for handling HTTP requests and responses. 
twitcurl has been tested on Microsoft Windows, Ubuntu and Debian. 
In fact, it works just fine on any operating system that supports cURL.
the hash/signatures.

This archive contains the header files for libtwitcul development.

%prep
%setup -q -n %{name}-%{version}

%build
%cmake
make %{?_smp_mflags}

%install
make install STAGING_DIR=%{buildroot}

%post   -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%files -n %{libname}
%defattr(-,root,root)
%doc COPYING* 
%{_libdir}/libtwitcurl.so.1
%{_libdir}/libtwitcurl.so.1.0

%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/libtwitcurl.so

%changelog