summaryrefslogtreecommitdiff
path: root/libosinfo.spec.in
Commit message (Collapse)AuthorAgeFilesLines
* spec: Explicitly call %meson_build in the %build sectionFabiano Fidêncio2020-07-281-0/+1
| | | | | | | | | | | It was never needed before as the %meson_install macro would perform a project rebuild. However, most recent versions of meson have changed the %meson_install macro to use `--no-rebuild`, exposing then this issue on our spec file. Fixes: #43 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* spec: Adapt to use mesonFabiano Fidêncio2019-09-251-12/+10
| | | | | | | | | | | | | The changes needed in the spec files are not so intrusive. One thing that has to be mentioned is the requirement for mingw-filesystem >= 107 (which is only present on Fedora 30+) in order to generate the mingw rpms for osinfo-db-tools. This huge bump in the version happened because the `%mingw_ninja_install` was only recently introduced to mingw-filesystem package. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
* spec: Remove BuildRoot definitionFabiano Fidêncio2019-09-251-1/+0
| | | | | | | | None of the currently supported distributions need that. Last one which did was EL5 (which, thankfully, is EOL now). Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
* spec: Switch to %ldconfig_scriptletsFabiano Fidêncio2019-09-251-6/+1
| | | | | | | | This change has been part of Fedora spec file for a quite long time, but it was never replicated upstream. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
* examples: Remove non functional examplesFabiano Fidêncio2019-08-061-4/+0
| | | | | | | | libosinfo examples are not working for some time. Let's remove them and, later on, we can come up with a new set of functional ones. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
* spec: Drop gvfs dependencyFabiano Fidêncio2019-07-171-1/+0
| | | | | | | | | | As we rely on libsoup to handle http://, https://, and ftp:// requests there's no need to depend on gvfs anymore. https://gitlab.com/libosinfo/libosinfo/issues/30 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
* media: Use libsoup for http:// & https:// requestsFabiano Fidêncio2019-07-171-0/+1
| | | | | | | | | | | | | | As osinfo_media_create_from_location_with_flags_async() can handle non-local cases, they'd end up relying on GVFS under the hood, which would cause those APIs to not work when called from an app running as root. In order to avoid this situation, let's rely on libsoup for these cases. https://gitlab.com/libosinfo/libosinfo/issues/30 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
* spec: Require GVFSFabiano Fidêncio2019-04-231-0/+1
| | | | | | | | GVFS is required as g_file_new_from_path() and g_file_new_from_uri() rely on GVFS. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
* tests: Remove test-*.urisFabiano Fidêncio2019-03-211-1/+0
| | | | | | | | | Those tests are now part of osinfo-db. With this change we can get rid of the curl dependency we have. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
* mingw,spec: Fix the Source URLFabiano Fidêncio2019-03-071-1/+1
| | | | | | | | https://releases.pagure.org/libosinfo/... instead of https://releases.pagure.io/libosinfo/... Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
* spec: Use standard vala packaging pattern where vapi files are in -develFabiano Fidêncio2019-03-071-13/+5
| | | | | | | | This commit brings upstream the changes done on Fedora on 42b96ea66d7b3e. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
* spec: Add "BuildRequires: gcc"Fabiano Fidêncio2019-03-071-0/+1
| | | | | | | Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
* mingw,spec: Remove obsolete Group tagFabiano Fidêncio2019-03-071-3/+0
| | | | | | | | | | | | | | | This commit brings upstream the changes done on Fedora on 61fea0d48407c0ee, References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag And "The Group: tag is not required in any live Fedora or EPEL release. RHEL5 did need it, but EPEL5 did not as it was supplied automatically via magic in the epel-rpm-macros package. The Packaging Guidelines have indicated that the Group: tag should not be used since March of 2017." Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
* spec: Remove needless use of %defattrFabiano Fidêncio2019-03-071-3/+0
| | | | | | | | | | | This commit is bringing upstream the change done on Fedora on 4a678b2f4d59, The change is related to https://docs.fedoraproject.org/en-US/packaging-guidelines/#_file_permissions Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
* build: Prefer gettext over intltoolMartin Blanchard2019-02-191-1/+1
| | | | | | | | intltool is outdated: https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
* spec: Drop %{extra_release}Andrea Bolognani2018-05-081-1/+1
| | | | | | | | It was mainly meant to be used for automatic builds through Test::AutoBuild, so it can be removed now. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Andrea Bolognani <abologna@redhat.com>
* tests: convert from check to the GLib testing frameworkPino Toscano2017-10-191-1/+0
| | | | | | | | | | | GLib has shipped a testing framework for many years already, so we can make use of it, replacing the external "check". The conversion only switches framework without changing the structure of the tests, making use of the more appropriate assertion in the various places. Signed-off-by: Pino Toscano <ptoscano@redhat.com>
* Switch from libsoup to libcurlPino Toscano2017-10-161-1/+1
| | | | | | | | | | | | | | | libsoup is used to check the validity of URLs in distributions in osinfo-db; OTOH it supports only HTTP(S), so this limits the checks to that protocol. To overcome this limitation, switch to libcurl: while it requires slightly more code to do the same task, it provides a bit more flexibility, and support for other protocols. No version check is performed, since the APIs used are old enough. Adapt also the README, and the packaging files. Acked-by: Christophe Fergeau <cfergeau@redhat.com>
* Rename test/ to tests/ directory.Daniel P. Berrange2017-04-281-1/+1
| | | | | | | To simplify libvirt Jenkins CI setup, rename the test directory to tests, so its name matches that used in other virt projects. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Remove reference to fedorahosted.org in spec filesDaniel P. Berrange2017-02-231-2/+2
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Test suite requires osinfo-db to be installedDaniel P. Berrange2016-10-101-0/+1
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* spec: fix path to test-suite.log - its in the test subdirDaniel P. Berrange2016-08-111-1/+1
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* spec: preserve error exit code on test failureDaniel P. Berrange2016-08-101-1/+5
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* spec: display test results on failureDaniel P. Berrange2016-08-101-1/+1
| | | | | | | | autotools hides detailed test output by default, so we must cat test-suite.log on failure to actually see what went wrong. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Remove database filesDaniel P. Berrange2016-08-101-9/+1
| | | | | | | Remove the database files and add a dependency on the osinfo-db RPM Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Remove osinfo-db-validate toolDaniel P. Berrange2016-07-181-2/+1
| | | | | | | | Remove the osinfo-db-validate tool which is now available via osinfo-db-tools. Add a RPM dep on osinfo-db-tools to pull it in for upgradability. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Assume availability of gobject introspection during RPM buildDaniel P. Berrange2016-07-181-23/+1
| | | | | | | The gobject introspection support is available for all currently targetted platforms, so remove RPM conditionals. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* loader: rework handling of pci.ids and usb.idsDaniel P. Berrange2015-10-201-3/+2
| | | | | | | | | | | | | | | | | | | | | | Currently we have the option to download pci.ids/usb.ids or symlink to the distro provided version given to configure. Change configure so that it searches for the files in a variety of expected locations. This ensures we always use the external files, in any modern Linux distro, without the user needing to give an arg. We look for them in /usr/share/hwdata/{pci.ids,usb.ids} (RHEL/Fedora) /usr/share/misc/{pci.ids,usb.ids} (Ubuntu/Debian/Gentoo) /usr/share/{pci.ids,usb.ids} (SLES/OpenSuse) Instead of loading the pci.ids/usb.ids files as part of the main database file enumeration process, explicitly load them from their expected location. This avoids the need to symlink the distro provided files into the database dir. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* data: remove pluralization from data directoriesDaniel P. Berrange2015-10-201-5/+5
| | | | | | | | eg instead of platforms/qemu.org/qemu-1.2.0.xml we just have platform/qemu.org/qemu-1.2.0. The top level directory name now matches the entity name exactly Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* data: rename 'hypervisors' to 'platforms'Daniel P. Berrange2015-10-201-1/+1
| | | | | | | | The database directory name matches the object name, except in the case of the platform object, where the directory is named "hypevisors". Change the dir name to "platforms" to be consistent. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Ditch udev ruleZeeshan Ali (Khattak)2015-08-261-18/+1
| | | | | | | | | | | New udev/blkid expose more ISO9660 properties that apps can grab and set on install media for detection to work. As a result our udev rule becomes redundant. This improves system bootup time conciderably if there is an ISO9660 media inserted during bootup as our udev rule needed to parse the XML etc and is therefore pretty slow (keeping in mind that a few seconds are a long time in the land of modern udev/systemd).
* spec: Don't require udev on newer distrosChristophe Fergeau2013-03-051-0/+2
| | | | | | 96c66b8 disabled building of the udev rule on newer Fedoras, however the .spec still has a Requires: udev, which is not relevant when the udev rule is not built.
* Allow to use system pci.ids/usb.ids filesChristophe Fergeau2013-03-051-1/+2
| | | | | | | Most distros already ship copies of pci.ids/usb.ids. This commit allows to make use of these rather than the ones shipped with libosinfo. This is achieved through the use of --with-usb-ids-path and --with-pci-ids-path configure flags.
* spec: Add explicit dep on pod2manCole Robinson2013-03-051-0/+1
| | | | | | | | | pod2man used to be in the default Fedora build root, but that's changed in current rawhide. The containing package is perl-podlators, but since that package doesn't exist on F18 and earlier, it's easiest just to depend on the needed binary.
* spec: Disable udev rule on newer FedorasChristophe Fergeau2013-02-191-1/+14
| | | | Changes in udev > 197 and libblkid > 2.22.2 have made this rule obsolete.
* spec: Switch URL to libosinfo.orgChristophe Fergeau2013-02-111-1/+1
| | | | | Now that libosinfo has an official website, let's point the .spec at it.
* Update RPM specs to include datamaps & locale filesDaniel P. Berrange2013-01-151-1/+5
|
* Add data files for Fedora & Windows unattended installsDaniel P. Berrange2012-08-231-0/+1
| | | | | | | | | | | For Fedora this adds a kickstart file template which self-adapts to all Fedora versions 1-> 16 For Windows this adds two file templates, one using the legacy SIF .ini file format for Win2k3 or earlier, and the other using the modern unattended XML format for Win2k8 or newer Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add a command line tool for generating install scriptsDaniel P. Berrange2012-08-231-0/+2
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add APIs for dealing with installer automation scriptsDaniel P. Berrange2012-08-231-0/+1
| | | | | | | | | This introduces two new objects - OsinfoInstallConfig - stores configuration parameters which get substituted into the install script template. - OsinfoInstallScript - provides a template and the mechanism for turning it into an install script using XSLT
* Add missing % to %{rhel} macroChristophe Fergeau2012-05-151-1/+1
| | | | This fixes the previous commit.
* Fix spec file for RHEL buildsChristophe Fergeau2012-05-151-1/+1
| | | | | | %fedora is not defined when building for RHEL, so we need to use %{?fedora} instead of %{fedora}. This commit also makes sure that newer RHELs will build libosinfo with introspection support.
* There is no libsoup-gnome-devel packageZeeshan Ali (Khattak)2012-04-121-1/+0
|
* Move database files into $datadir/db instead of $datadir/dataDaniel P. Berrange2012-03-211-6/+6
|
* Add osinfo-query man page to RPMsDaniel P. Berrange2012-03-151-0/+1
|
* Remove obsolete scripts for PCI/USB id conversionDaniel P. Berrange2012-03-141-2/+0
| | | | | | The osinfo-pciids-convert and osinfo-usbids-convert scripts are no longer required, since we can load the data files natively. Remove them to avoid a runtime dep on Perl.
* Add a 'osinfo-query' command line toolDaniel P. Berrange2012-03-131-0/+1
| | | | | | | | | | | | | | | | Enable end users to search the database with a new osinfo-query command. For example $ osinfo-query --fields=short-id,name os vendor="Fedora Project" Short ID | Name ----------------------+------------------ fedora1 | Fedora Core 1 fedora2 | Fedora Core 2 fedora3 | Fedora Core 3 fedora4 | Fedora Core 4 fedora5 | Fedora Core 5 fedora6 | Fedora Core 6 ...
* Add a man page for the osinfo-detect commandDaniel P. Berrange2012-02-241-0/+1
|
* Add an osinfo-db-validate command for verifying XML filesDaniel P. Berrange2012-02-241-0/+2
| | | | | | The osinfo-db-validate command takes a list of paths or URIs on the command line and validates them against the RNG schema
* Add an RNG schema for the libosinfo XML documentsDaniel P. Berrange2012-02-241-0/+2
| | | | | | Create an RNG schema that will be installed into /usr/share/libosinfo/schemas/libosinfo.rng and can be used to validate XML files