From 3a77ac1993492296bcfdc8ee17626e5d1c7f9761 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 30 Mar 2021 11:15:39 +0200 Subject: all: Use SPDX headers --- gudev/gudev.h | 16 ++-------------- gudev/gudevclient.c | 15 ++------------- gudev/gudevclient.h | 15 ++------------- gudev/gudevdevice.c | 15 ++------------- gudev/gudevdevice.h | 16 ++-------------- gudev/gudevenumerator.c | 16 ++-------------- gudev/gudevenumerator.h | 16 ++-------------- gudev/gudevenums.h | 16 ++-------------- gudev/gudevprivate.h | 16 ++-------------- gudev/gudevtypes.h | 16 ++-------------- tests/test-enumerator-filter.c | 17 +++-------------- tests/test-sysfsattr.c | 22 +++------------------- 12 files changed, 26 insertions(+), 170 deletions(-) diff --git a/gudev/gudev.h b/gudev/gudev.h index 2606101..cb43cde 100644 --- a/gudev/gudev.h +++ b/gudev/gudev.h @@ -1,19 +1,7 @@ /* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- * - * Copyright (C) 2008 David Zeuthen - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . + * SPDX-FileCopyrightText: 2008 David Zeuthen + * SPDX-License-Identifier: LGPL-2.1-or-later */ #ifndef __G_UDEV_H__ diff --git a/gudev/gudevclient.c b/gudev/gudevclient.c index f147a4d..cfd8baa 100644 --- a/gudev/gudevclient.c +++ b/gudev/gudevclient.c @@ -1,18 +1,7 @@ /* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- * - * Copyright (C) 2008-2010 David Zeuthen - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . + * SPDX-FileCopyrightText: 2008-2010 David Zeuthen + * SPDX-License-Identifier: LGPL-2.1-or-later */ #ifdef HAVE_CONFIG_H diff --git a/gudev/gudevclient.h b/gudev/gudevclient.h index f5c0a71..329f22d 100644 --- a/gudev/gudevclient.h +++ b/gudev/gudevclient.h @@ -1,18 +1,7 @@ /* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- * - * Copyright (C) 2008 David Zeuthen - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . + * SPDX-FileCopyrightText: 2008 David Zeuthen + * SPDX-License-Identifier: LGPL-2.1-or-later */ #if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H) diff --git a/gudev/gudevdevice.c b/gudev/gudevdevice.c index 92230aa..565fa28 100644 --- a/gudev/gudevdevice.c +++ b/gudev/gudevdevice.c @@ -1,18 +1,7 @@ /* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- * - * Copyright (C) 2008 David Zeuthen - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . + * SPDX-FileCopyrightText: 2008 David Zeuthen + * SPDX-License-Identifier: LGPL-2.1-or-later */ #ifdef HAVE_CONFIG_H diff --git a/gudev/gudevdevice.h b/gudev/gudevdevice.h index 3da71b8..69ecc0a 100644 --- a/gudev/gudevdevice.h +++ b/gudev/gudevdevice.h @@ -1,19 +1,7 @@ /* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- * - * Copyright (C) 2008 David Zeuthen - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . + * SPDX-FileCopyrightText: 2008 David Zeuthen + * SPDX-License-Identifier: LGPL-2.1-or-later */ #if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H) diff --git a/gudev/gudevenumerator.c b/gudev/gudevenumerator.c index cc85f1a..f908f82 100644 --- a/gudev/gudevenumerator.c +++ b/gudev/gudevenumerator.c @@ -1,19 +1,7 @@ /* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- * - * Copyright (C) 2008-2010 David Zeuthen - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . + * SPDX-FileCopyrightText: 2008-2010 David Zeuthen + * SPDX-License-Identifier: LGPL-2.1-or-later */ #ifdef HAVE_CONFIG_H diff --git a/gudev/gudevenumerator.h b/gudev/gudevenumerator.h index ea892e2..e0838ee 100644 --- a/gudev/gudevenumerator.h +++ b/gudev/gudevenumerator.h @@ -1,19 +1,7 @@ /* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- * - * Copyright (C) 2008-2010 David Zeuthen - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . + * SPDX-FileCopyrightText: 2008-2010 David Zeuthen + * SPDX-License-Identifier: LGPL-2.1-or-later */ #if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H) diff --git a/gudev/gudevenums.h b/gudev/gudevenums.h index 06e58ff..259472d 100644 --- a/gudev/gudevenums.h +++ b/gudev/gudevenums.h @@ -1,19 +1,7 @@ /* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- * - * Copyright (C) 2008 David Zeuthen - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . + * SPDX-FileCopyrightText: 2008 David Zeuthen + * SPDX-License-Identifier: LGPL-2.1-or-later */ #if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H) diff --git a/gudev/gudevprivate.h b/gudev/gudevprivate.h index 061388d..52e9f5b 100644 --- a/gudev/gudevprivate.h +++ b/gudev/gudevprivate.h @@ -1,19 +1,7 @@ /* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- * - * Copyright (C) 2008 David Zeuthen - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . + * SPDX-FileCopyrightText: 2008 David Zeuthen + * SPDX-License-Identifier: LGPL-2.1-or-later */ #if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H) diff --git a/gudev/gudevtypes.h b/gudev/gudevtypes.h index 74bd96a..f206368 100644 --- a/gudev/gudevtypes.h +++ b/gudev/gudevtypes.h @@ -1,19 +1,7 @@ /* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- * - * Copyright (C) 2008 David Zeuthen - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . + * SPDX-FileCopyrightText: 2008 David Zeuthen + * SPDX-License-Identifier: LGPL-2.1-or-later */ #if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H) diff --git a/tests/test-enumerator-filter.c b/tests/test-enumerator-filter.c index dfcdba2..6e9a073 100644 --- a/tests/test-enumerator-filter.c +++ b/tests/test-enumerator-filter.c @@ -4,21 +4,10 @@ * Run with: * umockdev-wrapper /tmp/battery * - * Copyright (C) 2013 Canonical Ltd. - * Author: Martin Pitt - * - * umockdev is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * SPDX-FileCopyrightText: 2013 Canonical Ltd. + * SPDX-License-Identifier: LGPL-2.1-or-later * - * umockdev is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . + * Author: Martin Pitt */ #include diff --git a/tests/test-sysfsattr.c b/tests/test-sysfsattr.c index 9d1c920..12e45ef 100644 --- a/tests/test-sysfsattr.c +++ b/tests/test-sysfsattr.c @@ -1,24 +1,8 @@ -/* umockdev example: use libumockdev in C to fake a battery - * Build with: - * gcc battery.c -Wall `pkg-config --cflags --libs umockdev-1.0 gio-2.0` -o /tmp/battery - * Run with: - * umockdev-wrapper /tmp/battery +/* + * SPDX-FileCopyrightText: 2013 Canonical Ltd. + * SPDX-License-Identifier: LGPL-2.1-or-later * - * Copyright (C) 2013 Canonical Ltd. * Author: Martin Pitt - * - * umockdev is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * umockdev is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see . */ #include -- cgit v1.2.1