%define vcs .git854.59853e5 %define bname smooth Name: %{bname} Version: 0.83.1 Release: 1.0 Summary: The Smooth Class Library License: Artistic-2.0 Group: Multimedia/Sound/Libraries Url: http://www.smooth-project.org/ Source: %{name}-%{version}%{vcs}.tar.xz #Patch0: #BuildRequires: autoconf #BuildRequires: automake #BuildRequires: desktop-file-utils BuildRequires: fdupes BuildRequires: gcc-c++ >= 4.5 #BuildRequires: hicolor-icon-theme #BuildRequires: pkgconfig(dbus-1) >= 1.0.2 #BuildRequires: pkgconfig(dbus-glib-1) >= 0.88 BuildRequires: zlib-devel BuildRequires: libbz2-devel BuildRequires: libcurl-devel BuildRequires: fribidi-devel BuildRequires: gtk3-devel BuildRequires: libjpeg8-devel BuildRequires: libxml2-devel BuildRequires: libXmu-devel Requires: libgtk-3-0 Requires: libcurl4 Requires: libjpeg8 %description Smooth is an object oriented C++ class library for Windows, macOS, Linux and most Unix-like operating systems. It provides basic functionality and platform support for applications and libraries. Features provided by _smooth_ include: - user interface API with various widgets; - simple to use multithreading API; - file and network IO interface; - completely transparent Unicode and software internationalization support; - a libxml2 based XML parser. %package devel Summary: Development files for the Smooth Class Library Group: Development/Libraries/C and C++ Requires: %{bname} = %{version} %description devel Development files for the Smooth Class Library. %prep %setup -q -n %{name}-%{version}%{vcs} #%patch0 -p1 find . -type f -iregex ".*\.\([ch]\)\(\1\|pp\|\)" -exec dos2unix {} \; -exec chmod 0644 {} \; sed -i.orig Makefile-options -e 's!^\(libdir\s*=\s*.*\)lib\s*$!\1'%{_lib}'!; s!/usr/local!/usr!g' # s!^\(LIBDIR\s*=\s*\).*!\1'%{_lib}'!; %build make %install LIBDIR=%{_lib} make DESTDIR=%{buildroot} install %make_install # %find_lang %{name} %post %desktop_database_post %postun %desktop_database_postun %files %defattr(-,root,root) %doc Readme.md %{_bindir}/%{name}* %{_libdir}/lib%{name}*.so.* %files devel %defattr(-, root, root) %{_includedir}/%{name}.h %dir %{_includedir}/%{name} %{_includedir}/%{name}/* %{_libdir}/lib%{name}*.so %changelog