Группа :: Система/Библиотеки
Пакет: liblcf
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-mageia-compat
BuildRequires: /usr/bin/update-mime-database gcc-c++
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define shortname lcf
%define major 0
%define libname lib%{shortname}%{major}
%define devname lib%{shortname}-devel
Name: liblcf
Version: 0.7.0
Release: alt1_3
Summary: Library to handle RPG Maker 2000/2003 and EasyRPG projects
Group: System/Libraries
License: MIT
URL: https://easyrpg.org
Source0: https://easyrpg.org/downloads/player/%{version}/%{name}-%{version}.tar.xz
# liblcf is not detected without this patch https://github.com/EasyRPG/Editor/issues/214
Patch0: liblcf-0.7.0-fix-cmake-detection.patch
BuildRequires: ccmake cmake ctest
BuildRequires: libicu-devel
BuildRequires: libtool
BuildRequires: pkgconfig(expat)
Source44: import.info
%description
liblcf is a library to handle RPG Maker 2000 and 2003 game data.
It can read and write LCF and XML files. Part of C++ source files
can be regenerated from templates and CSV files using a Python script.
liblcf is part of the EasyRPG Project. More information is available
at the project website: easy-rpg.org
%files
%{_bindir}/lcf2xml
%{_bindir}/lcfstrings
#----------------------------------------------------------------------
%package -n %{libname}
Summary: Library to handle RPG Maker 2000/2003 and EasyRPG projects
Group: System/Libraries
Requires: %name = %version-%release
%description -n %{libname}
liblcf is a library to handle RPG Maker 2000 and 2003 game data.
It can read and write LCF and XML files. Part of C++ source files
can be regenerated from templates and CSV files using a Python script.
liblcf is part of the EasyRPG Project. More information is available
at the project website: easy-rpg.org
%files -n %{libname}
%doc AUTHORS.md COPYING README.md
%{_datadir}/mime/*
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{version}
#----------------------------------------------------------------------
%package -n %{devname}
Summary: Development headers and library for %{name}
Group: Development/C++
Requires: %{libname} = %{version}-%{release}
%description -n %{devname}
This package contains development headers and library for %{name},
a library which handles RPG Maker 2000/2003 and EasyRPG projects.
%files -n %{devname}
%{_includedir}/lcf/
%{_libdir}/%{name}.so
%{_libdir}/cmake/liblcf/
%{_libdir}/pkgconfig/%{name}.pc
#----------------------------------------------------------------------
%prep
%setup -q
%patch0 -p1
%build
%{mageia_cmake} \
-DDISABLE_UPDATE_MIMEDB=ON
%mageia_cmake_build
%install
%mageia_cmake_install
# FIXME: CMake should do it itself
pushd %{buildroot}%{_libdir}
ln -s %{name}.so.%{major} %{name}.so.%{version}
%changelog
…
Полный changelog можно просмотреть здесь
BuildRequires(pre): rpm-macros-mageia-compat
BuildRequires: /usr/bin/update-mime-database gcc-c++
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define shortname lcf
%define major 0
%define libname lib%{shortname}%{major}
%define devname lib%{shortname}-devel
Name: liblcf
Version: 0.7.0
Release: alt1_3
Summary: Library to handle RPG Maker 2000/2003 and EasyRPG projects
Group: System/Libraries
License: MIT
URL: https://easyrpg.org
Source0: https://easyrpg.org/downloads/player/%{version}/%{name}-%{version}.tar.xz
# liblcf is not detected without this patch https://github.com/EasyRPG/Editor/issues/214
Patch0: liblcf-0.7.0-fix-cmake-detection.patch
BuildRequires: ccmake cmake ctest
BuildRequires: libicu-devel
BuildRequires: libtool
BuildRequires: pkgconfig(expat)
Source44: import.info
%description
liblcf is a library to handle RPG Maker 2000 and 2003 game data.
It can read and write LCF and XML files. Part of C++ source files
can be regenerated from templates and CSV files using a Python script.
liblcf is part of the EasyRPG Project. More information is available
at the project website: easy-rpg.org
%files
%{_bindir}/lcf2xml
%{_bindir}/lcfstrings
#----------------------------------------------------------------------
%package -n %{libname}
Summary: Library to handle RPG Maker 2000/2003 and EasyRPG projects
Group: System/Libraries
Requires: %name = %version-%release
%description -n %{libname}
liblcf is a library to handle RPG Maker 2000 and 2003 game data.
It can read and write LCF and XML files. Part of C++ source files
can be regenerated from templates and CSV files using a Python script.
liblcf is part of the EasyRPG Project. More information is available
at the project website: easy-rpg.org
%files -n %{libname}
%doc AUTHORS.md COPYING README.md
%{_datadir}/mime/*
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{version}
#----------------------------------------------------------------------
%package -n %{devname}
Summary: Development headers and library for %{name}
Group: Development/C++
Requires: %{libname} = %{version}-%{release}
%description -n %{devname}
This package contains development headers and library for %{name},
a library which handles RPG Maker 2000/2003 and EasyRPG projects.
%files -n %{devname}
%{_includedir}/lcf/
%{_libdir}/%{name}.so
%{_libdir}/cmake/liblcf/
%{_libdir}/pkgconfig/%{name}.pc
#----------------------------------------------------------------------
%prep
%setup -q
%patch0 -p1
%build
%{mageia_cmake} \
-DDISABLE_UPDATE_MIMEDB=ON
%mageia_cmake_build
%install
%mageia_cmake_install
# FIXME: CMake should do it itself
pushd %{buildroot}%{_libdir}
ln -s %{name}.so.%{major} %{name}.so.%{version}
%changelog
…
Полный changelog можно просмотреть здесь